﻿using System;
using Microsoft.EntityFrameworkCore.Metadata;
using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace ZenSystemService.Api.Migrations
{
    /// <inheritdoc />
    public partial class SubstituteCourseRecord : Migration
    {
        /// <inheritdoc />
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            
        }

        /// <inheritdoc />
        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropForeignKey(
                name: "FK_TraineeOrderDetails_TraineeOrders_TraineeOrderId",
                table: "TraineeOrderDetails");

            migrationBuilder.DropForeignKey(
                name: "FK_TraineeOrderRecommendTermDetails_TraineeOrderDetails_Trainee~",
                table: "TraineeOrderRecommendTermDetails");

            migrationBuilder.DropTable(
                name: "SubstituteCourseRecords");

            migrationBuilder.DropIndex(
                name: "IX_TraineeOrderRecommendTermDetails_TraineeOrderDetailId",
                table: "TraineeOrderRecommendTermDetails");

            migrationBuilder.DropIndex(
                name: "IX_TraineeOrderDetails_TraineeOrderId",
                table: "TraineeOrderDetails");

            migrationBuilder.DropColumn(
                name: "SubstituteCoachId",
                table: "Courses");
        }
    }
}
